
<%@ page import="java.util.ArrayList" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>商品信息修改</title>
    <link rel="shortcut icon" href="favicon.ico" />
    <link rel="bookmark"href="favicon.ico" />
    <style>
        .c_photo img{
            width: 200px;
            height: 200px;
        }
    </style>
</head>
<body>
<%@include file="header.jsp"%>
欢迎进入商品信息修改平台！<br>
<form action="SaveCommodityDitServlet.do" method="post">
    <table>
        <c:forEach items="${sessionScope.commodities}" var="c">
            <br><br><br>
            <div class="c_photo">
                <img src="${c.photo}">
                <br>商品编号:<input type="text" value="${c.cid}" name="cid"readOnly="true" >
                <br>商品剩余数量:<input type="text" value="${c.number}" name="number">
                <br>商品价格:<input type="text" value="${c.price}" name="price">
                <br>商品名称:<input type="text" value="${c.c_name}" name="c_name">
                <br>商品图片:<input type="file"  name="photo" value="${c.photo}" dirname="${c.photo}">
            </div>
            <br>
        </c:forEach>
        <input type="submit" value="确认修改该商品">
        <a href="adminCommodity.do"><input type="submit" value="查看所有商品"></a>
    </table>

</form>
</body>
</html>